package me.chendan

/**
  * Created by chendan on 16-4-5.
  */
class WebUtil(var uid: String, var cost: Double) extends Serializable {

  override def toString= uid + ": " + cost
}

object WebUtil {
  def paseFromLines(line: String): WebUtil = {
    val dataArr = line.split("\\|")
    new WebUtil(dataArr(0), dataArr(1).toDouble)
  }
}
